package hao.bk.royalmap;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

public class SearchFaster extends RelativeLayout {
	private RoyalMapActivity main;
	SearchFasterGeneralLayout generalLayout;
	public SearchFaster(Context context, AttributeSet attrs) {
		super(context, attrs);
		main = (RoyalMapActivity)context;
	}
	public void showSearchFaster() {
		generalLayout = new SearchFasterGeneralLayout(main);
		addContent(generalLayout);
	}
	public void addContent(View view) {
		this.removeAllViews();
		LayoutParams param = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		this.addView(view, param);
	}
	
}
